﻿@{
    ViewBag.Title = "UpdateInfo";
}

@section scripts
{
    <link href="~/Scripts/miniui/themes/default/medium-mode.css" rel="stylesheet" type="text/css" />       
    <link rel="stylesheet" href="../Scripts/kindeditor-4.1.10/themes/default/default.css" />
    <script src="@Url.Content("~/Scripts/shared/share.js")" type="text/javascript"></script> 
    <script charset="utf-8" src="../Scripts/kindeditor-4.1.10/kindeditor-all.js"></script>
    <script charset="utf-8" src="../Scripts/kindeditor-4.1.10/lang/zh_CN.js"></script>    
}

<form id="form1" method="post">
            @Html.Partial("~/Views/Modular/Toolbars.cshtml")
        <div name="Base" title="微信消息" style="height:100%;overflow:hidden;margin-top:15px;margin-left:20px">
            <table>
                <tr>
                    <td width="40px" height ="50px" align="right">日期：</td>
                    <td width="250px" height ="50px">
                        <input id="FDateTime" name="FDateTime" enabled="false" class="mini-datepicker " format="yyyy-MM-dd HH:mm:ss" style="width:200px;" tabindex="1"/>
                    </td>
                    <td width="40px" height ="50px" align="right"></td>
                    <td width="250px" height ="50px">                        
                    </td>
                </tr>
               <tr>
                    <td width="40px" height ="300px" align="right">发送：</td>
                    <td width="250px" colspan="3">
                        <textarea class="mini-textarea" name="FContent" style="width: 100%; height: 300px"></textarea>
                    </td>
                </tr>
                <tr>
                    <td width="40px" height ="100px" align="right">返回：</td>
                    <td width="250px" colspan="3">
                        <textarea class="mini-textarea" name="FRetValue" style="width: 100%; height: 100px"></textarea>
                    </td>
                </tr>
            </table>
            <br />
        </div>
</form>

<script>
    mini.parse();

    function FormShown() {

    }

    //加载资料
    function SetInfoData(data) {
        $.post("GetWxMessageInfo", { json: "[{'FEntryID':'" + data.FEntryID + "'}]" }, function (data) {
            var form = new mini.Form("form1");
            var mdata = mini.decode(data);
            mini.getbyName("FContent").setValue(mdata.data[0].FContent);
            mini.getbyName("FRetValue").setValue(mdata.data[0].FRetValue);
            mini.getbyName("FDateTime").setValue(mdata.data[0].FDateTime);
        });
    }    

</script>